//
//  NetworkCenter.h
//  LingQianZhu
//
//  Created by xieyingze on 2016/12/16.
//  Copyright © 2016年 谢英泽. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#import "NetworkParam.h"


/**
 网络出参回调
 */
typedef void(^NetworkCompleted)(BOOL isSucess,id response);

@interface NetworkCenter : NSObject

+ (instancetype)shareInstance;

/**
 Block请求
 */
- (void)networkRequestWithNetworkParam:(NetworkParam *)networkParam completed:(NetworkCompleted)completed;

/**
 *  检测网络
 *
 *  @return 是否联网
 */
- (BOOL)isConnectNetWork;

/**
 *  获取网络时间
 *
 *  @param nowNetWorkTimeBlock 返回时间   /  或者无网络状态信息
 */
- (void)getNetworkTimeBlock:(void(^)(NSTimeInterval timestamp))nowNetWorkTimeBlock;

/**
 *  基准URL
 */
- (NSString *)getBaseURL;
/**
 *  图片基准url 图片不包含LqgAppService路径
 */
- (NSString *)getImageBaseURL;

@end
